{extend name="public/layout"/}
{/block}
{block name="content"}
<div class="row">
    <!-- left -->
    <include file="Content:left" />

    <div class="col-md-8" style="padding-top: 70px;">
        
            <ol class="breadcrumb">
                <li><a href="#">Home</a></li>
                <li><a href="#">落地页</a></li>
            </ol>
        

        <div class="actions clearfix">
            <div class="pull-left">
                <a href="{:U('Category/add')}"><button type="button" class="btn  btn-primary">添加</button></a>
            </div>
        </div>

        <div class="" style="margin-top:15px;">
            <table class="table table-hover table-striped">
                <tr class="active">
                    <td>排序</td>
                    <td>名称</td>
                    <td>操作</td>
                </tr>
                <foreach name="cateArr" item="vo1">
                <tr>
                    <td>{$vo1.sort}</td>
                    <td>{$vo1.title}&nbsp;<a href="{:U('Category/add',array('pid'=>$vo1['id']))}" title="新增"><span class="glyphicon glyphicon-plus-sign"></span></a></td>
                    <td>
                        <a title="编辑" href="{:U('edit?id='.$vo1['id'].'&pid='.$vo1['pid'])}">编辑</a>
                        <a title="删除" href="{:U('remove?id='.$vo1['id'])}" class="confirm ajax-get">删除</a>
                    </td>
                </tr>
                    <foreach name="vo1.menu1" item="vo2">
                        <tr>
                        <td>{$vo2.sort}</td>
                        <td>└──&nbsp;{$vo2.title}&nbsp;<a href="{:U('Category/add',array('pid'=>$vo2['id']))}" title="新增"><span class="glyphicon glyphicon-plus-sign"></span></a></td>
                        <td>
                            <a title="编辑" href="{:U('edit?id='.$vo2['id'].'&pid='.$vo2['pid'])}">编辑</a>
                            <a title="删除" href="{:U('remove?id='.$vo2['id'])}" class="confirm ajax-get">删除</a>
                        </td>
                        </tr>
                        <foreach name="vo2.menu2" item="vo3">
                            <tr>
                            <td>{$vo3.sort}</td>
                            <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;└──&nbsp;{$vo3.title}</td>
                            <td>
                                <a title="编辑" href="{:U('edit?id='.$vo3['id'].'&pid='.$vo3['pid'])}">编辑</a>
                                <a title="删除" href="{:U('remove?id='.$vo3['id'])}" class="confirm ajax-get">删除</a>
                            </td>
                            </tr>
                        </foreach>
                    </foreach>
                </foreach>
            </table>
        </div>

    </div>
</div>
{/block}

